home *** CD-ROM | disk | FTP | other *** search
- stop();
- bu.onPress = function()
- {
- trace(start_time + "--------------------------------------------------");
- tmp_ball_ball_type_arr = [random(4) + 1,random(4) + 1,random(4) + 1];
- gotoAndPlay(1);
- };
- moreGame.onRelease = function()
- {
- getURL(_root.localization_url1,"_blank");
- };
- trace(so.data.scores + "=====");
- var i = 0;
- while(i < so.data.scores.length - 1)
- {
- var j = i + 1;
- while(j < so.data.scores.length)
- {
- if(so.data.scores[i][1] > so.data.scores[j][1])
- {
- var tmp = so.data.scores[i];
- so.data.scores[i] = so.data.scores[j];
- so.data.scores[j] = tmp;
- }
- j++;
- }
- i++;
- }
- var i = 1;
- while(i < 8)
- {
- var name_txt = this["name_txt" + i];
- var scores = this["scores" + i];
- name_txt.text = so.data.scores[so.data.scores.length - i][0];
- scores.text = so.data.scores[so.data.scores.length - i][1];
- trace(" name_txt = " + name_txt + " scores = " + scores);
- trace(" name_txt.text = " + name_txt.text + " scores.text = " + scores.text);
- if(so.data.scores[so.data.scores.length - i][0] == undefined)
- {
- name_txt.text = "";
- scores.text = "";
- }
- i++;
- }
-